<template>
  <!-- 整体容器 -->
  <div class="more-container">
    <!-- 头像和昵称区域 -->
    <div class="user-info">
      <!-- 头像 -->
      <img :src="userStore.userNextInfo.avatar || '/static/default-avatar.png'"  class="avatar">
      <!-- 昵称 -->
      <span class="nickname">{{userStore.userNextInfo.name}}</span>
    </div>
    <!-- 更多选项区域 -->
    <div class="options-container">
      <div class="option">关于软件 <span class="arrow-icon">></span></div>
      <div class="option">设置 <span class="arrow-icon">></span></div>
      <div class="option">联系客服 <span class="arrow-icon">></span></div>
      <div class="option">意见反馈 <span class="arrow-icon">></span></div>
    </div>
  </div>
</template>

<script>
  import { useUserStore } from '../../store/user';
  const userStore = useUserStore()
export default {
  setup() {
    return{
      userStore
    }
  },
  name: 'MorePage'
};
</script>

<style scoped>
/* 整体容器样式 */
.more-container {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: #f9f9f9;
  min-height: 100vh;
}

/* 用户信息区域样式 */
.user-info {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

/* 头像样式 */
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 昵称样式 */
.nickname {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

/* 选项容器样式 */
.options-container {
  display: flex;
  flex-direction: column;
}

/* 单个选项样式 */
.option {
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 16px;
  color: #555;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

/* 鼠标悬停在选项上的样式 */
.option:hover {
  background-color: #e9e9e9;
  color: #333;
}

/* 最后一个选项去掉下边框 */
.option:last-child {
  border-bottom: none;
}

/* 箭头图标样式 */
.arrow-icon {
  color: #888;
}
</style>